<script lang="ts" setup>
import { ref,defineProps } from 'vue'


const props=defineProps({
    size:{//选择器大小
        type:String,
        default:'default'
    },
    value:{
        type:String,
        default:''
    }

})


const size = ref<'default' | 'large' | 'small'>('default')

const value1 = ref('')


</script>

<template>
  <div class="demo-date-picker">
    <div class="block">
      <span class="demonstration"></span>
      <el-date-picker
        v-model="value1"
        type="daterange"
        range-separator="至"
        start-placeholder="开始日期"
        end-placeholder="结束日期"
        :size="props.size"
      />
    </div>
  </div>
</template>

<style scoped>
.demo-date-picker {
  margin-left:10px ;
  display: flex;
  width: 100%;
 
  
  flex-wrap: wrap;
  
}

.demo-date-picker .block {
  padding: 0 0;
  text-align: center;
  border-right: solid 1px var(--el-border-color);
  flex: 1;
}

.demo-date-picker .block:last-child {
  border-right: none;
}

.demo-date-picker .demonstration {
  display: block;
  color: var(--el-text-color-secondary);
  font-size: 14px;
  
}
</style>